<%@ page language="java" pageEncoding="utf-8" contentType="text/html;charset=UTF-8" import="com.frogs.framework.component.cache.Cache,com.frogs.framework.web.filter.*"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>刷新</title>
</head>

<body>
<%
Cache cache = (Cache)SpringWebContext.getSpringContext().getBean("xmemcached");
String key = request.getParameter("key");
if(key != null){
	out.println(cache.get(key)+"<br/>");
	cache.remove(key);
	out.println(cache.get(key)+"<br/>");
}
%>

<form name="clearmemcache" action="freshCache.jsp" method="get">
memcache-key:<input name="key" id="key" /><br/> 
<input type="submit" value="清除"/>
</form>
</body>
</html>